package com.wjh.graduation.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author Wu Jiahong
 * @since 2022-01-25
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
@Getter
@Setter
  @Accessors(chain = true)
  @ApiModel(value = "People对象", description = "")
public class People {

      @ApiModelProperty("人脉ID")
      @TableId(value = "people_id", type = IdType.AUTO)
      private Integer peopleId;

      @NotNull
      @ApiModelProperty("用户ID")
      private Integer userId;

      @ApiModelProperty("分组id")
      private Integer groupId;

      @ApiModelProperty("姓名")
      private String name;

      @ApiModelProperty("性别,1表示男，0表示女")
      private Integer sex;

      @ApiModelProperty("出生日期")
      @JsonFormat(pattern = "yyyy-MM-dd")
      private Date birthday;

      @ApiModelProperty("手机号码")
      private String phone;

      @ApiModelProperty("邮箱")
      private String email;

      @ApiModelProperty("居住地区")
      private String region;

      @ApiModelProperty("职位")
      private String position;

      @ApiModelProperty("描述")
      private String description;

      @ApiModelProperty("认识途径")
      private String approach;

      @ApiModelProperty("所在公司")
      private String company;

      @ApiModelProperty("爱好")
      private String hobby;


      public static final String PEOPLEID = "peopleId";

      public static final String USERID = "userId";

      public static final String GROUPID = "groupId";

      public static final String NAME = "name";

      public static final String SEX = "sex";

      public static final String BIRTHDAY = "birthday";

      public static final String PHONE = "phone";

      public static final String EMAIL = "email";

      public static final String REGION = "region";

      public static final String POSITION = "position";

      public static final String DESCRIPTION = "description";

      public static final String APPROACH = "approach";

      public static final String COMPANY = "company";

      public static final String HOBBY = "hobby";

  }
